package com.example.springfeature.decorator;

/**
 * Created with IDEA
 * 音量控制机器人包装类
 * @author: 董文辉
 * Date: 2019/3/30
 * Time: 14:44
 */
public class VolumeControlRobotWraper implements Robot {
    private Robot robot;

    public VolumeControlRobotWraper(Robot robot) {
        this.robot = robot;
    }
    @Override
    public void speak() {
        System.out.println("Turn up the volume");
        robot.speak();
    }
    @Override
    public void move() {
        robot.move();
    }
}
